package com.cz.test;

import com.cz.ioc.annotation.IComponent;
import com.cz.ioc.annotation.Inject;

/**
 * @version 1.0.0
 */
@IComponent("orderService")
public class OrderServiceImpl implements OrderService {

    @Inject("orderComponent")
    private OrderComponent orderComponent;

    @Override
    public int addOrder(String orderId) {
        orderComponent.add(orderId);
        return 1;
    }
}
